# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=aisleriot
pkgver=3.22.32
pkgrel=0
pkgdesc="Solitaire and other card games for GNOME"
url="https://wiki.gnome.org/Apps/Aisleriot"
arch="all"
license="GPL-3.0-or-later"
options="!strip" # guille libraries cannot be stripped
depends="guile"
depends_doc="yelp"
makedepends="
	bash
	gmp-dev
	gtk+3.0-dev
	guile-dev
	itstool
	libcanberra-dev
	librsvg-dev
	libxml2-dev
	meson
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://gitlab.gnome.org/GNOME/aisleriot/-/archive/$pkgver/aisleriot-$pkgver.tar.gz"

build() {
	abuild-meson \
		-Dtheme_kde=false \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
14f1df620e0d1866b8793f2ac1ad36b0bdc6504e13e2d98e804a3bc3c741fe572438969bd1c836f3752c27c22f3f119c173d2a809abf2859971a4046f7c30be5  aisleriot-3.22.32.tar.gz
"
